<?php
declare (strict_types = 1);

namespace app\demo\model;

use think\Model;
use think\model\concern\SoftDelete;

/**
 * @mixin \think\Model
 */
class Text extends Model
{
    //
    use SoftDelete;
    public function type(){
        return $this->hasOne(Type::class,'id','type_id');
    }
}
